package org.springframework.learn.beans.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * Description
 * Copyright © 启明星辰 版权所有
 *
 * @author chenjiquan
 * @date 2024-06-21
 */
@Component
@Aspect
public class AServiceAspect {

	@Before("execution(* org.springframework.learn.beans.data.*.*(..))")
	public void logBefore(JoinPoint joinPoint) {
		// 在方法执行前打印日志
		System.out.println("logBefore");
	}

}
